package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 muser
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class Muser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID，主键，自增 */
    private Long id;

    /** 用户密码，加密存储 */
    @Excel(name = "用户密码，加密存储")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 手机号，可选 */
    @Excel(name = "手机号，可选")
    private String phone;

    /** 性别：0未知，1男，2女 */
    @Excel(name = "性别：0未知，1男，2女")
    private Long gender;

    /** 头像地址，可选 */
    @Excel(name = "头像地址，可选")
    private String avatar;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("phone", getPhone())
            .append("gender", getGender())
            .append("avatar", getAvatar())
            .append("createTime", getCreateTime())
            .toString();
    }
}
